package com.lzz.service.imple;

import com.lzz.dao.RoleDao;
import com.lzz.entity.Role;
import com.lzz.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author zhenzhen
 * @date 2018-12-21 下午7:37
 */
@Service
public class RoleServiceImpl implements RoleService {
    @Autowired
    private RoleDao roleDao;
    @Override
    public int addRole(Role role) {
        return roleDao.insert(role);
    }

    @Override
    public Role getRoleById(String uuid) {
        return roleDao.selectById(uuid);
    }
}
